<h1>Product Stock Details</h1>


<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
    <tr>
		<th>Product Details</th>
		<th>Date</th>
        <th>Sales Quantity</th>
        <th>Purchase Quantity</th>
	</tr>
    </thead>

	
	<?php foreach ($stocks as $report){?>
		<tr>
			<td><?php echo $this->daily_model->get_product_details($report->id_product); ?></td>
			<td><?php  echo $report->date; ?></td>
           	<td><?php echo $this->daily_model->get_sales_quantity($report->id_product,$report->date);  ?></td>
			 <td><?php   echo $this->daily_model->get_purchase_quantity($report->id_product,$report->date); ?></td>
       	
		</tr>
	<?php }?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_report');?>">Create a new report</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->


    <!-- Button to trigger modal -->
    
     
    <!-- Modal -->
